//template中只能是唯一的一个根元素
<template>
<!-- 头部区域开始 -->
   <div>
      <mt-header title="黑马程序员.vue项目">
      <span slot="left">
        <mt-button icon="back">返回</mt-button>
      </span>
</mt-header>
<!-- 头部区域结束 -->
<router-view></router-view>
<!-- tabbar区域开始 -->
        <nav class="mui-bar mui-bar-tab">
			<router-link class="my-tab-item" to="/homePage">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link class="my-tab-item" to="/member">
				<span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">会员</span>
			</router-link>
			<router-link class="my-tab-item" to="/shopCart">
				<span class="mui-icon mui-icon-extra mui-icon-extra-cart"><span class="mui-badge">0</span></span>
				<span class="mui-tab-label">购物车</span>
			</router-link>
			<router-link class="my-tab-item" to="/search">
				<span class="mui-icon mui-icon-search"></span>
				<span class="mui-tab-label">搜索</span>
			</router-link>
		</nav>
        <!-- tabbar区域结束 -->
   </div>
</template>

<script>

export default {
    data(){
        return {}
    },
    methods:{
        
            
    },
}
</script>

<style lang="less" scoped>
.mint-header {
  z-index: 99;
}

.mui-bar-tab .my-tab-item.mui-active {
  color: #007aff;
}

.mui-bar-tab .my-tab-item {
  display: table-cell;
  overflow: hidden;
  width: 1%;
  height: 50px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #929292;
}

.mui-bar-tab .my-tab-item .mui-icon {
  top: 3px;
  width: 24px;
  height: 24px;
  padding-top: 0;
  padding-bottom: 0;
}

.mui-bar-tab .my-tab-item .mui-icon ~ .mui-tab-label {
  font-size: 11px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>